<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class m_kuesioner_jawaban_model extends arfaModel {
    function __construct() {
        parent::__construct();
		$this->table_name	= "kuesioner_jawaban";
		$this->primary_key	= "kd_kuesioner_jawaban";
		$this->order_by		= "kd_kuesioner_jawaban ASC";
    }

    public function kuesioner_join_kuesioner_jawaban($parameter,$counter)
    {
    	$this->db->select('*');
    	$this->db->from($this->table_name);
    	$this->db->join('kuesioner', 'kuesioner.kd_kuesioner = kuesioner_jawaban.kd_kuesioner');
        $this->db->where('kuesioner_jawaban.kd_kuesioner', $parameter);
    	$this->db->where('kuesioner_jawaban.ID_PERTANYAAN', $counter);
    	$query = $this->db->get();

    	return $query->result_array();
    }
}